package com.javasm.finance.entity;

import lombok.*;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class Menu {
    //菜单编号
    private Integer menuId;
    //菜单名称
    private String menuName;
    //上级编号
    private Integer parentId;
    private String parentName;
    //请求地址
    private String menuUrl;
    //菜单图标
    private String glyphicon;
    //版本编号
    private Integer versionId;
    //子菜单-二级菜单数据
    private List<Menu> subMenu;

    public Menu(Integer menuId, String menuName, Integer parentId, String menuUrl, String glyphicon, Integer versionId) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.parentId = parentId;
        this.menuUrl = menuUrl;
        this.glyphicon = glyphicon;
        this.versionId = versionId;
    }
}
